package cn.com.nes.site.service.workOrder.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author yueb
 * @date 2019-08-08 19:40
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PermissionDto {

    /**
     * 行政区划代码
     */
    private String xzqhdm;

    /**
     * 行政区划名称
     */
    private String xzqhmc;

    /**
     * 设备厂家ids
     */
    private List<String> equipmentCompanyIds;

    /**
     * 设备厂家名称
     */
    private List<String> equipmentCompanyNames;

    public PermissionDto(UserXzqhCompanyDto userXzqhCompanyDto) {
        this.xzqhdm = userXzqhCompanyDto.getXzqhdm();
        this.xzqhmc = userXzqhCompanyDto.getXzqhmc();
        this.equipmentCompanyIds = userXzqhCompanyDto.getEquipmentCompanyIds();
        this.equipmentCompanyNames = userXzqhCompanyDto.getEquipmentCompanyNames();
    }
}
